package cn.gd.service.PendingTasks;

import cn.gd.pojo.*;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface PendingTasksService {
    PageInfo<LeaveAppLiCations> queryPendingTasks(Integer pageNum, Integer pageSize, String... dateRange);

    LeaveAppLiCations queryPendingTasksById1(Integer id);

    Boolean updatePendingTasksById(Integer id, Approvalinfo approvalinfo);

    List<Department> getUsersLeadershipAll(Integer deptId);

    PageInfo<Travelapplications> queryTravelApplicationsAll(Integer pageNum, Integer pageSize, String... dateRange);
    Travelapplications queryTravelApplicationsById(Integer id);
    Boolean updateTravelApplicationsById(Integer id, Approvalinfo approvalinfo);

    PageInfo<Vehicleusage> queryVehicleUsageAll(Integer pageNum, Integer pageSize, String... dateRange);
    Vehicleusage queryVehicleUsageById(Integer id);
    Boolean updateVehicleUsageById(Integer id, Approvalinfo approvalinfo);

    PageInfo<Sealusage> querySealUsageAll(Integer pageNum, Integer pageSize, String... dateRange);
    Sealusage querySealUsageById(Integer id);
    Boolean updateSealUsageById(Integer id, Approvalinfo approvalinfo);

    PageInfo<Bookborrowing> queryBookborrowingAll(Integer pageNum, Integer pageSize, String... dateRange);
    Bookborrowing queryBookborrowingById(Integer id);
    Boolean updateBookborrowingById(Integer id, Approvalinfo approvalinfo);

    PageInfo<Businesscardprinting> queryBusinesscardprintingAll(Integer pageNum, Integer pageSize, String... dateRange);
    Businesscardprinting queryBusinesscardprintingById(Integer id);
    Boolean updateBusinesscardprintingById(Integer id, Approvalinfo approvalinfo);

    PageInfo<Incomeproofapplications> queryIncomeProofApplicationsAll(Integer pageNum, Integer pageSize, String... dateRange);
    Incomeproofapplications queryIncomeProofApplicationsById(Integer id);
    Boolean updateIncomeProofApplicationsById(Integer id, Approvalinfo approvalinfo);
}
